<?php
namespace api\home\controller;

use api\home\model\NavModel;
use cmf\controller\RestBaseController;


class NavController extends RestBaseController
{
    public function getNavList()
    {
        $list = NavModel::with('child')
            ->where('parent_id','0')
            ->select();
        $this->success('导航菜单列表',$list);

    }
}
